package com.web.jdbcyw1.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.base.baseService;
import com.web.jdbcyw1.module.User;
import com.web.jdbcyw1.service.UserService2;
@Service
public class UserServiceImpl2 extends baseService<User> implements UserService2 {
	public List<User> queryUser(User user) {
		List<User> list = this.getDao("dao").queryForList("queryUser",1,3);
		return list;
	}
	@Transactional
	public int addUser(User user) {
		int i = this.getDao("dao").insertObj("addUser",user);
		System.out.println(1/0);
		return i;
	}
	@Override
	public User queryUserForOne(String str) {
		// TODO Auto-generated method stub
		return null;
	}
}
